package com.sctvcloud.zhaohua_sd.beans;

import com.ruihang.generalibrary.ui.util.IListData;
import com.ruihang.generalibrary.utils.IShares;
import com.ruihang.generalibrary.utils.UrlUtils;
import com.sctvcloud.zhaohua_sd.application.Constances;
import com.sctvcloud.zhaohua_sd.ui.util.IListShowData;

import java.io.Serializable;

/**
 * Created by liuyu on 2017/8/9.
 */

public class FTopic extends NewsItem implements Serializable, IListShowData,IShares {
    private static final long serialVersionUID = 2851079194994216420L;
    private int commentCount;
    private String sharedUrl;
    private String specialId;
    private String topImage;
    private String topTitle;
    private String topVideo;

    private String answerTo;
    private String avatar;
    private String comment;
    private String commentId;
    private String nickName;
    private String userId;

    private int viewType;

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getSharedUrl() {
        return sharedUrl;
    }

    public void setSharedUrl(String sharedUrl) {
        this.sharedUrl = sharedUrl;
    }

    public String getSpecialId() {
        return specialId;
    }

    public void setSpecialId(String specialId) {
        this.specialId = specialId;
    }

    public String getTopImage() {
        return topImage;
    }

    public void setTopImage(String topImage) {
        this.topImage = topImage;
    }

    public String getTopTitle() {
        return topTitle;
    }

    public void setTopTitle(String topTitle) {
        this.topTitle = topTitle;
    }

    public String getTopVideo() {
        return topVideo;
    }

    public void setTopVideo(String topVideo) {
        this.topVideo = topVideo;
    }

    public String getAnswerTo() {
        return answerTo;
    }

    public void setAnswerTo(String answerTo) {
        this.answerTo = answerTo;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String getPubTime() {
        return pubTime;
    }

    @Override
    public void setPubTime(String pubTime) {
        this.pubTime = pubTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getViewType() {
        return viewType;
    }

    public void setViewType(int viewType) {
        this.viewType = viewType;
    }

    @Override
    public String getDataTitle() {
        return getNewsTitle();
    }

    @Override
    public String getDataImg() {
        return getNewsImage();
    }

    @Override
    public String getDataTag() {
        return null;
    }

    @Override
    public String getDataId() {
        return null;
    }

    @Override
    public int getDataType() {
        return newsType;
    }

    @Override
    public int getDataViewType() {
        return viewType;
    }

    @Override
    public IListData getOwner() {
        return null;
    }

    @Override
    public String getTime() {
        return pubTime;
    }

    @Override
    public IListShowData getOwenerData() {
        return null;
    }

    @Override
    public String getShareTitle() {
        return topTitle;
    }

    @Override
    public String getShareH5() {
        return null;
    }

    @Override
    public String getShareImage() {
        return topImage;
    }

    @Override
    public String getShareDigest() {
        return null;
    }

    @Override
    public String getShareURL() {
        return UrlUtils.linkUrls(Constances.ST_BASE_URL,sharedUrl);
    }
}
